<template>
  <div>
    <!-- :value="isShow" @input="isShow = $event" -->
    <!-- <Son v-model="isShow" /> -->
    {{ isShow }}

    <!-- <Son :value="isShow" @input="test" /> -->

    <button @click="show">显示子组件</button>

    <Son2 v-model="isShow" />
  </div>
</template>

<script>
import Son from "./06_son.vue";
import Son2 from "./06_son2.vue";
export default {
  data() {
    return {
      isShow: false,
    };
  },
  components: {
    Son,
    Son2,
  },
  methods: {
    show() {
      this.isShow = true;
    },
    test(event) {
      console.log(event);
    },
  },
};
</script>

<style>
</style>